home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 55
/
MINAMI55.ISO
/
Varios
/
Juegos
/
05 - Power_Ranger.swf
/
scripts
/
DefineSprite_128
/
frame_9
/
DoAction.as
Wrap
Text File
|
2004-10-04
|
847b
|
29 lines
_parent._x += _parent.spx;
_parent._y += _parent.spy;
_parent.spx = 30 * Math.sin(0.017453292519943295 * (r - 90 * (_parent.muki * 2 - 1)));
_parent.spy = 30 * Math.cos(0.017453292519943295 * (r - 90));
if(_root.HP > 0)
{
if(_parent.ak.hitTest(_root.s0.a.aaa.k))
{
if(_root.s0["e" + _parent.jiki].scale < 180)
{
_root.e_damage(1.5,-1,-2,1,-2,1,0,_parent.no,1,1,_parent.muki);
}
else
{
_root.e_damage(1.5,-1,100,0,0,0,0,_parent.no,1,1,_parent.muki);
}
_parent.spx = 5 * Math.sin(0.017453292519943295 * (r - 90 * (_parent.muki * 2 - 1)));
_parent.spy = 5 * Math.cos(0.017453292519943295 * (r - 90));
}
}
if(_parent._x < -20 || _parent._x > 620 || _parent._y < -20 || _parent._y > 350)
{
removeMovieClip(_parent);
}
else
{
gotoAndPlay(8);
}